public class Member {
    private int id;//编号
    private String name;//姓名
    private int age;//年龄
    private String grade;//年级
    public Member(int id,String name,int age,String grade){
        this.id=id;
        this.name=name;
        this.age=age;
        this.grade=grade;
    }
    public int getId(){
        return id;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public String getGrade() {
        return grade;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "详细信息{"+"成员编号；"+id+"，姓名：‘"+name+"’，年龄；"+age+"，年级：‘"+grade+"’}";
    }
}
